<template>
  <div>
    <van-list :finished="finished" finished-text="没有更多了" >
      <van-cell v-for="item in arr" :key="item" :title="item" @click="cellClick(item)" />
    </van-list>
  </div>
</template>

<script>
export default {
  name: 'MyList',
  props: ['arr'],
  data() {
    return {
      finished: true
    }
  },
  methods: {
    // 点击搜索列表时进行搜索事件
    cellClick(item) {
      this.$emit('cellClick', item)
    }
  }
}
</script>

<style>

</style>